package com.tchintech.pay.delegate.fragment;

import android.widget.LinearLayout;
import android.widget.TableRow;
import android.widget.TextView;

import com.tchintech.pay.R;
import com.tchintech.pay.frame.view.AppDelegate;
import com.tchintech.pay.view.XCRoundRectImageView;

import butterknife.Bind;

/**
 * Created by Administrator on 2017/7/6 0006.
 */

public class MyInfoFragmentDelegate extends AppDelegate  {

    @Bind(R.id.roundRectImageView)
    XCRoundRectImageView roundRectImageView;
    @Bind(R.id.linear_top)
    LinearLayout linearTop;
    @Bind(R.id.tv_info_username)
    TextView tvInfoUsername;
    @Bind(R.id.tv_info_phoneNumber)
    TextView tvInfoPhoneNumber;
    @Bind(R.id.tv_tr_identify)
    TextView tvTrIdentify;
    @Bind(R.id.tr_identify)
    TableRow trIdentify;
    @Bind(R.id.tr_orderQuery)
    TableRow trOrderQuery;
    @Bind(R.id.tr_updatePassword)
    TableRow trUpdatePassword;

    @Override
    public int getRootLayoutId() {
        return R.layout.fragment_myinfo;
    }

    /**
     * 设置文字
     * @param id
     * @param text
     * @return
     */
    public TextView setText(int id,String  text){
        TextView textView=null;
        textView=get(id);
        textView.setText(text);
        return  textView;
    }
}
